// 定义state
export const state = () => ({
    savedraft: []
})
// 定义mutations
export const mutations = {
    issue(state, data) {
        console.log(state.savedraft);
        state.savedraft.push(data)
    }, 
    delete(state,data){
        state.savedraft.pop(data) 
   }, 
    compile(state) {
    console.log(state.savedraft);
}
}
// 定义actions